package com.parleys.android.client.ui;

import android.app.Activity;
import android.content.Intent;
import android.graphics.PixelFormat;
import android.os.Bundle;
import android.view.View;
import android.view.Window;

import com.parleys.android.client.R;
import com.parleys.android.client.provider.ParleysContract.News;
import com.parleys.android.client.provider.ParleysContract.Spaces;

public class HomeActivity extends Activity {
	
	private static final String TAG = "HomeActivity";
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        
        setContentView(R.layout.activity_home);
    }

	@Override
	public void onAttachedToWindow() {
		super.onAttachedToWindow();
		final Window window = getWindow();
		window.setFormat(PixelFormat.RGBA_8888);
	}
	
	public void onNewsClick(View v) {
		startActivity(new Intent(Intent.ACTION_VIEW, News.CONTENT_URI));
	}
    
	public void onSpacesClick(View v) {
		startActivity(new Intent(Intent.ACTION_VIEW, Spaces.CONTENT_URI));
	}
    
}
